PutBucketReferer
Description
PutBucketReferer operation can set a bucket Referer access whitelist and whether to allow requests with empty Referer fields to access.
Request Method
POST
Request Path
/apsara/route/OneRouter/PutBucketReferer
Request Parameters Common Parameters
Name | Location | Type | Required | Sample value | Description |
---|---|---|---|---|---|
regionId | BODY | string | Yes | No sample value for this parameter. | region id |
Referer | BODY | string | No | http://www.aliyun.com | Specify a Referer access whitelist. |
RefererConfiguration | BODY | container | Yes | not involved | container for saving Referer configuration content. Type: container child node: allowEmptyReferer node, RefererList node parent node: none |
RefererList | BODY | container | Yes | not involved | Save the container that Referer access to the whitelist. |
version | BODY | string | No | 2016-01-01 | version of api |
AllowEmptyReferer | BODY | enumeration string | Yes | true | specifies whether to allow access to requests with empty Referer fields. default value: true |
Return data
Name | Type | Sample value | Description |
---|---|---|---|
RequestID | string | 1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC | Request id |
Example
Successful Response example
{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}
Failed Response example
{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}
}